﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.WS.UserControls;
using GCELibrary.Current;
using System.Transactions;
using ZF.BLL;
namespace ZF.WS.Admin.sys
{

    public partial class getpwd : _uc
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public override void InitControls()
        {
            var gp = SystemConfig.GetPwdEmail;
            this.tbAccount.Text = gp.Account;
            this.tbPwd.Text = gp.Pwd;
            this.tbStmp.Text = gp.Stmp;
            this.tbTemplate.Text = gp.MsgTemplate;
            this.tbEmail.Text = gp.Email;

       
        }
        public override void Ok(object sender, EventArgs e)
        {
            var gp = SystemConfig.GetPwdEmail;

            gp.MsgTemplate = this.tbTemplate.Text;
            gp.Stmp = this.tbStmp.Text;
            gp.Pwd = this.tbPwd.Text;
            gp.Account = this.tbAccount.Text;
            gp.Email = this.tbEmail.Text;
            base.Ok(sender, e);
        }
    }
}